import Museum from '../view/museum/index';
import Perface from '../view/museum/perface';
import Catalog from '../view/museum/catalog';
import CatalogDetail from '../view/museum/catalog-detail';
import ProductDetail from '../view/museum/product-detail';
import Purchase from '../view/museum/purchase';

export default [
	{
		path: '/museum',
		name: 'museum',
		component: Museum,
	},
	{
		path: '/perface',
		name: 'perface',
		component: Perface,
	},
	{
		path: '/catalog',
		name: 'catalog',
		component: Catalog,
		meta: {
			keepalive: true // 组件是否需要被保存
		}
	},
	{
		path: '/catalog-detail/:kid',
		name: 'catalog-detail',
		component: CatalogDetail,
	},
	{
		path: '/product-detail/:kid/:classify',
		name: 'product-detail',
		component: ProductDetail,
	},
	{
		path: '/purchase',
		name: 'purchase',
		component: Purchase,
	}
]